/**
 * 
 */
package decorator;

/**
 * @author boboges
 *
 */
public class ContentResolver extends Catcher{
	
	protected Catcher catcher;

	public void setCatcher(Catcher catcher) {
		this.catcher = catcher;
	}

	/* (non-Javadoc)
	 * @see decorator.Catcher#catchAndReturn(java.lang.String)
	 */
	@Override
	public void catchAndReturn(String wholeHtml) {
		if (null != catcher) {
			catcher.catchAndReturn(wholeHtml);
		}
	}

}
